Hi Colin,
KMotionCNC can already send the speed to a Windows program. Several users have already done what you describe.
Search the Group Conversations for
modpoll or see:
This post has a little C++ program that you might find useful to scale and format the speed for the modbus call.
KFLOP also has a UART/RS232 port that can do real-time Modbus. See the \C Programs\RS232\ModBus examples. But you would need to modify KMotionCNC to add a "Phase Current" display.
HTH
Regards
K
Group: DynoMotion |
Message: 9512 |
From: Tom Kerekes |
Date: 5/21/2014 |
Subject: Re: pass variable to windows program |
Hi Colin, Not for Spindle on but (M3) rather for Spindle Speed (Sxxxx). The S value multiplied by the SSO will be passed on the end of the command. Other M Codes will pass the P Q R words if specified. KMotionCNC will wait until the called Windows program terminates. If you don't wish to wait it is possible to use a batch file that returns immediately but "Starts" a new Windows Process.
Regards TK
| |